package icu.xblogs.report.service;

import icu.xblogs.report.domain.Employee;
import icu.xblogs.report.plugin.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

public interface AttendanceRecordService {
    //获取日出勤记录
    List<Map<String,String>> getDayList(String day);
    //获取日缺勤记录
    List<Map<String,String>> getAbsenceDayList(String day);
    //获取日出勤记录(分页)
    List<Map<String,String>> getDayList(String day, Page page);
    //获取日缺勤记录(分页)
    List<Map<String,String>> getAbsenceDayList(String day, Page page);
    //获取月出勤记录
    List<Map<String,String>> getMonthList(String month);
    //获取月出勤迟到记录
    List<Map<String,String>> getMonthLateList(String month, String time);
    //获取月出勤记录(分页)
    List<Map<String,String>> getMonthList(String month, Page page);
    //获取月出勤迟到记录(分页)
    List<Map<String,String>> getMonthLateList(String month, String time, Page page);
    //获取某用户日出勤记录
    Map<String,String> getOneDay(String day,int eid);
    //获取某用户月出勤记录
    List<Map<String,String>> getOneMonthList(String month,int eid);
    //获取某用户月出勤统计数据
    Map<String,String> getOneMonth(String month,int eid);
    //查询某员工某日期是否已经考勤
    int countByDate(int id, String date);
    //插入一条考勤记录
    void insertOneRecord(int id, String accurate, String date);
}
